package {
	import flash.display.Bitmap;
	import datapool.Context;
	import flash.display.Sprite;

	/**
	 * @author Administrator
	 */
	public class GameMain extends Sprite 
	{
		public function GameMain() 
		{
			var context:Context = new Context();
			context.remoteResource.requestRs("map.jpg", onComplete);
		}
		private function onComplete(data:*):void
		{
			trace("loadend");
			var bitmap:Bitmap = data as Bitmap;
			stage.addChild(bitmap);
		}
	}
}
